package org.jeecg.trace.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.trace.dto.BarCodeTraceDTO;
import org.jeecg.trace.dto.MaterialHistoryDTO;
import org.jeecg.trace.dto.QisDefectsDTO;
import org.jeecg.trace.entity.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface BarCodeTraceService {
    IPage<?> queryByCode(Page<BarCodeTraceDTO> page, String code);

    IPage<MesUnitHistory> listMesUnitHistoryByUnitsn(Page<MesUnitHistory> page,String unitsn,String line);

    IPage<MesProcDataValue> listMesProcDataValueByMainId(Page<MesProcDataValue> page, String mainId);

    void exportXsl(HttpServletRequest request, HttpServletResponse response, BarCodeTraceDTO barCodeTraceDTO);

    List<MaterialHistoryDTO> mesMaterialSetByProduct(Page<MesMaterialSet> page, String unitsn);

    List<MesStatusbitCfg> listMesStatusWordValueByMainId(Page<MesMaterialSet> page, String historyId);

    List<QisDefectsDTO> listQisDefectsByMainId(String unitsn);

    IPage<MesUnitid> listMesUnitIdByUnitsn(Page<MesUnitid> page, String unitsn);

    Map<String, Object> listMesUnitIds(Map<String, Object> map);
}
